﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ResetPassword.aspx.cs" Inherits="INHollandair.Account.ResetPassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
     <script src="/Scripts/bootstrap-tooltip.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     <div class="container pull-down">
        <div class="row">
            <div class="span8 offset2">
                <h1>Wachtwoord herstel</h1>
                <fieldset class="well roundedBorder form-horizontal">
                    <asp:Panel ID="pnl_ResetPassword" runat="server">
                        <p>Vul uw nieuwe wachtwoord in in de onderstaande velden om uw wachtwoord te resetten.</p><br />
                        <div class="control-group">
                            <label class="control-label" for="Password">Wachtwoord:</label>
                            <a id="pass" style="float:left;" href="#" onmouseover="$('#pass').tooltip(animation = true, delay = 0)" title="Uw wachtwoord moet 8-24 karakters lang zijn en tenminste 1 gewone letter, 1 hoofdletter, 1 cijfer en 1 leesteken uit deze reeks: .*[@#$%^&+=_-] bevatten."><i class="icon-question-sign"></i></a>
                            <div class="controls">
                                <asp:TextBox ID="Password" MaxLength="24" CssClass="input-large" runat="server" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator Display="Dynamic" ID="PasswordRequired" ForeColor="Red" Width="200" runat="server" ControlToValidate="Password" ErrorMessage="Wachtwoord is niet ingevuld." ValidationGroup="ValidationGroup"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="PasswordRegex" ForeColor="Red" runat="server" ErrorMessage="Wachtwoord is niet sterk genoeg." ControlToValidate="Password" ValidationGroup="ValidationGroup" ValidationExpression="^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+=-_]).*$" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="ConfirmPassword">Wachtwoord bevestigen:</label>
                            <div class="controls">
                                <asp:TextBox ID="ConfirmPassword" MaxLength="24" CssClass="input-large" runat="server" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator Display="Dynamic" ControlToValidate="ConfirmPassword" ForeColor="Red" Width="200" ErrorMessage="Wachtwoord is niet ingevuld." ID="ConfirmPasswordRequired" runat="server" ValidationGroup="ValidationGroup"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="PasswordCompare" ForeColor="Red" runat="server" ControlToCompare="Password" ControlToValidate="ConfirmPassword" ErrorMessage="Wachtwoorden komen niet overeen." ValidationGroup="ValidationGroup"></asp:CompareValidator>
                            </div>
                        </div>
                        <div class="form-actions">
                            <asp:Button ID="ResetPasswordButton" CausesValidation="True" CssClass="btn btn-inverse"  runat="server" OnClick="ResetPasswordClick" Text="Submit" ValidationGroup="ValidationGroup"/>
                            <p class="help-block">
                                <asp:Label ID="errorLabel" ForeColor="Red" runat="server" Text=""></asp:Label>
                            </p>
                        </div>
                    </asp:Panel>
                    <asp:Panel ID="pnl_ResetPasswordSucces" runat="server">
                        <p>Uw wachtwoord is veranderd, <asp:Label ID="UserNameLabel" runat="server" Text="Label"></asp:Label>.</p>
                    </asp:Panel>
                </fieldset>
                <p><< Naar de <asp:HyperLink runat="server" NavigateUrl="~/Account/Login.aspx">log in</asp:HyperLink> pagina.</p>
            </div>
        </div>
    </div>
</asp:Content>
